<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
<?php list($upload_js,$upload_htm)=admin_upload_pic_list(array(
	'title'=>'相关图片 尺寸：602 x 403',
	'thumb'=>'157x125',
	'record'=>isset($rs)?$rs:null
	))?>
<script language="JavaScript" type="text/javascript">
function page_load(){
	dialog_size(860);
	$(".form input:first").focus();
	dialog_editor("#content");
	<?=$upload_js?>
}
</script>
<?=form_open_multipart("$title/post/$type_id")?>
<div class="dialog-title">
<h2><?=admin_create_caption($caption)?></h2>
<span><a href="javascript:close_dialog();">关闭 [X]</a></span>
</div>
<div class="dialog-note">
	<p>留空的参数前台不显示</p>
</div>
<?=validation_errors('<div class="warning">','</div>')?>
<div class="form">
<ul class="halfside">
	<li>名称 / 分类<br />
		<?=form_new_input('title','','class="text"')?>&nbsp;
		<?php $rs['type_id']=$type_id;?>
        <?=form_dropdown('type_id',$type_tree,set_edit_value('type_id',$rs))?>
	</li>
	<li>发布时间 / 状态<br />
		<?=form_new_input('timeline',date('Y-m-d H:i:s'),'class="text mydatetime"')?>
		&nbsp;&nbsp;
		<label><?=form_new_checkbox('show','1',true)?>可见</label>
		<label><?=form_new_checkbox('recommend','1',false)?>推荐</label>
		</li>
	<i class="clear"></i>
<!--	<li>field11<br />
		<? //=form_new_input('field1','','class="text m"')?></li>
	<li>field12<br />
		<? //=form_new_input('field2','','class="text m"')?></li>
	<li>field13<br />
		<? //=form_new_input('field3','','class="text m"')?></li>
	<li>field14<br />
		<? //=form_new_input('field4','','class="text m"')?></li>
	<li>field15<br />
		<? //=form_new_input('field5','','class="text m"')?></li>
	<li>field16<br />
		<? //=form_new_input('field6','','class="text m"')?></li>
	<li>field17<br />
		<? //=form_new_input('field7','','class="text m"')?></li>
	<li>field18<br />
		<? //=form_new_input('field8','','class="text m"')?></li>
	<li>field19<br />
		<? //=form_new_input('field9','','class="text m"')?></li>
	<li>field110<br />
		<? //=form_new_input('field10','','class="text m"')?></li>-->
	<!--<li>field111<br />
		<? //=form_new_input('field11','','class="text m"')?></li>
	<li>field112<br />
		<? //=form_new_input('field12','','class="text m"')?></li>-->
</ul>
<?=$upload_htm?>
<p>详细内容<br />
	<?=form_textarea('content',set_value('content'),'id="content"')?>
</p>
</div>
<div class="dialog-bottom">
	<div class="dbleft">
		<a href="javascript:close_dialog();" class="button"><span>&nbsp; 取消 &nbsp;</span></a>
	</div>
	<div class="dbright">
		<span class="submit"><input type="submit" value="保存信息" /></span>
	</div>
	<div class="clear"></div>
</div>
<?=form_close()?>